package me.luger.project.fof.controller.api;

import me.luger.core.commom.util.LogUtil;
import me.luger.core.mvc.controller.BaseController;
import me.luger.core.mvc.entity.Result;
import me.luger.core.mvc.version.ApiVersion;
import me.luger.project.fof.service.FundNavService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * FundNav controller
 */
@RestController
@RequestMapping("/test")
@ApiVersion(2)
public class TestApiController extends BaseController {

    @RequestMapping("/hello")
    @ApiVersion(1)
    @ResponseBody
    public String hello(HttpServletRequest request){
        return "hello1";
    }

    @RequestMapping("/hello2")
    @ApiVersion(2)
    @ResponseBody
    public String hello2(HttpServletRequest request){
        return "hello";
    }

    @RequestMapping("/hello")
    @ApiVersion(5)
    @ResponseBody
    public String hello5(HttpServletRequest request){
        return "hello5";
    }

    @RequestMapping("/hello6")
    @ResponseBody
    public String hello6(HttpServletRequest request){
        return "hello6";
    }

    @RequestMapping("/hello7")
    @ResponseBody
    public String hello7(HttpServletRequest request){
        return "hello7";
    }
}
